﻿using System;
using System.Web;

using Fuse8.ContentManagementFramework.Domain;

namespace Fuse8.ContentManagementFramework.Administration.Logic
{
    public class CmsTemplateFileViewProvider : BaseFileViewProvider<CmsTemplate>
    {
        #region Override properties

        public override string PhisicalPath
        {
            get
            {
                return HttpContext.Current != null ?
                    new HttpContextWrapper(HttpContext.Current).Server.MapPath("~/templates") :
                    base.PhisicalPath;
            }
        }

        public override string CmsFileItemName
        {
            get
            {
                return "Templates";
            }
        }

        #endregion
    }
}